package com.jinzhi.jzweb.pojo.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/*
 *  @author : JingChangTian
 *  @date   : 2023/12/11 13:47
 *  @description : 章节文件表
 *
 */
@Data
@TableName("chapter_document")
public class ChapterDocument {

    @TableId
    private Long id;

    @ApiModelProperty(value = "文件名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "文件地址")
    @TableField("file")
    private String file;

    @ApiModelProperty(value = "章节id")
    @TableField("chapter_id")
    private Long chapterId;

    @ApiModelProperty(value = "资源id")
    @TableField("courses_id")
    private Long coursesId;

    @ApiModelProperty(value = "1.压缩包2.文档3.视频4.图片5.音频 ")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "状态（0正常）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建人id ")
    @TableField("creater_id")
    private Long createrId;

    @ApiModelProperty(value = "创建时间 ")
    @TableField("creater_date")
    private Date createrDate;

    @ApiModelProperty(value = "默认为0，逻辑删除为1")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "修改人id ")
    @TableField("updater_id")
    private Long updaterId;

    @ApiModelProperty(value = "修改时间 ")
    @TableField("update_date")
    private Date updateDate;

    @ApiModelProperty(value = "pdf地址")
    @TableField("file_pdf")
    private String filePdf;


    @ApiModelProperty(value = "章节名称")
    @TableField(exist = false)
    private Long chapterName;

}
